package colin.project.sso.server.business.observer;

import colin.project.sso.server.business.observer.enums.OperationEventEnums;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @Author joker
 * @Title ServiceOperationEvent
 * @Description
 * @Date 2019/5/18 5:05 PM
 * @Since
 * @Version 1.0.0
 */
@Data
public class PubOperationEvent extends ApplicationEvent {
    //具体的操作事件
    private OperationEventEnums operationEventEnums;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public PubOperationEvent(OperationEventEnums operationEventEnums, Object source) {
        super(source);
        this.operationEventEnums = operationEventEnums;
    }
}
